package com.richpencil.utils;

import java.util.UUID;

public class IdHelper {
    public static String Uid()
    {
        String uuid = UUID.randomUUID().toString().replaceAll("-", "");
        return uuid;

    }
    public static String GetTimeCode()
    {
        String code=System.currentTimeMillis() / 1000 + "";
        return code;
    }
    public static String GetFileName(String fileName)
    {
        fileName = Uid().toUpperCase() + fileName.substring(fileName.lastIndexOf("."), fileName.length());
        return fileName;
    }
    public static String GetImageFileName()
    {

        String imagefilename=IdHelper.Uid()+".jpg";
        return imagefilename;

    }

    public static String GetImageFileName(String path)
    {

        String imagefilename=path+"/"+IdHelper.Uid()+".jpg";
        return imagefilename;

    }
}
